package com.my.goodsmanage.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.my.goodsmanage.entity.PictureDto;
import com.my.goodsmanage.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 徐佳辉
 * @date 2020/8/4 18:33
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {

    User selectByNameOrPhone(String user);

    List<PictureDto> selectAllByUserIdOrName(Page page,@Param("userId") int userId, @Param("name") String name);


}
